package com.xianggu.designMode.combination.demo04.impl;

import com.xianggu.designMode.combination.demo04.Expression;

/**
 * @author chengjy
 * @date 2025/3/20
 */
public class MultipExpression implements Expression {

private Expression left;
    private Expression right;

    public MultipExpression(Expression left, Expression right) {
        this.left = left;
        this.right = right;
    }

    @Override
    public int getValue() {
        return left.getValue() * right.getValue();
    }
}
